home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr48 / 386p_200.zip / SCANCODE.TXT < prev    next >
Text File  |  1994-12-28  |  2KB  |  67 lines

  1. These are the values for "pressed" keyboard scancodes
  2. (the "released" value has bit7 set ) [ using the ibm pc compatible mode]
  3. plus some codes used for keyboard controller communications
  4. and/or generation on "multiple-scancode" press/release
  5.  
  6.  01h    Esc         31h    N
  7.  02h    1 !         32h    M
  8.  03h    2 @         33h    , <         63h    F16
  9.  04h    3 #         34h    . >         64h    F17
  10.  05h    4 $         35h    / ?         65h    F18
  11.  06h    5 %         36h    Right Shift     66h    F19
  12.  07h    6 ^         37h    Grey*         67h    F20
  13.  08h    7 &         38h    Alt         68h    F21
  14.  09h    8 *         39h    SpaceBar     69h    F22
  15.  0Ah    9 (         3Ah    CapsLock     6Ah    F23
  16.  0Bh    0 )         3Bh    F1         6Bh    F24
  17.  0Ch    - _         3Ch    F2         6Ch    --
  18.  0Dh    = +         3Dh    F3         6Dh    EraseEOF
  19.  0Eh    Backspace     3Eh    F4
  20.  0Fh    Tab         3Fh    F5         6Fh    Copy/Play
  21.  10h    Q         40h    F6
  22.  11h    W         41h    F7
  23.  12h    E         42h    F8         72h    CrSel
  24.  13h    R         43h    F9
  25.  14h    T         44h    F10         74h    ExSel
  26.  15h    Y         45h    NumLock         75h    --
  27.  16h    U         46h    ScrollLock     76h    Clear
  28.  17h    I         47h    Home
  29.  18h    O         48h    UpArrow
  30.  19h    P         49h    PgUp
  31.  1Ah    [ {         4Ah    Grey-
  32.  1Bh    ] }         4Bh    LeftArrow
  33.  1Ch    Enter         4Ch    Keypad 5
  34.  1Dh    Ctrl         4Dh    RightArrow
  35.  1Eh    A         4Eh    Grey+
  36.  1Fh    S                4Fh    End              THESE ARE "CONTROL" CODES:
  37.  20h    D         50h    DownArrow     E0h    prefix code
  38.  21h    F         51h    PgDn         E1h    prefix code
  39.  22h    G         52h    Ins         FAh    ACK
  40.  23h    H         53h    Del         FEh    RESEND
  41.  24h    J         54h    SysReq         FFh    kbd error/buffer full
  42.  25h    K
  43.  26h    L         56h    left \| (102-key)
  44.  27h    ; :         57h    F11
  45.  28h    ' "         58h    F12
  46.  29h    ` ~
  47.  2Ah    Left Shift     5Ah    PA1
  48.  2Bh    \ |         5Bh    F13
  49.  2Ch    Z         5Ch    F14
  50.  2Dh    X         5Dh    F15
  51.  2Eh    C
  52.  2Fh    V
  53.  30h    B
  54.  
  55. N.B.
  56. THESE ARE THE VALUES FOR "AMERICAN" KEYBOARDS!!!!!
  57. Anyway, space,shift,control & cursor keys
  58. and function (F1 .. F10) are the same on all keyboards.
  59.  
  60. Scan codes 56h-58h E0h-E1h are only available on the extended (101/102-key)
  61. keyboard and Host Connected (122-key) keyboard.
  62. Scan codes 5Ah-76h are only available on the 122-key keyboard.
  63. The SysReq key is often labeled SysRq.
  64.  
  65. This explains why we need "dos mode" access to read ascii keys correctly.
  66.  
  67.